#pragma once
#define MaxSize 10
#define ElemType int
typedef struct
{
    ElemType data[MaxSize];
    int top0;
    int top1;
    // (top1 == MaxSize - top0) is true
}ShareStack;

// InitStack
void InitShareStack(ShareStack& S);

// ButtomStack push
bool PushButtom(ShareStack& S, ElemType x);

// TopStack push
bool PushTop(ShareStack& S, ElemType x);

// ButtomStack pop
bool PopButtom(ShareStack& S, ElemType& x);

// TopStack Pop
bool PopTop(ShareStack& S, ElemType& x);